package com.ethink.mdm.api;

import com.ethink.mdm.api.info.LegalCurrencyExchangeRateInfo;
import com.ethink.mdm.api.request.LegalCurrencyExchangeRateListByPubDatesRequest;
import com.ethink.mdm.api.response.LegalCurrencyExchangeRateGetSummaryResponse;
import com.ethink.mdm.api.response.LegalCurrencyExchangeRateListByPubDatesResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 法币汇率表 Facade接口
 *
 * @Author: lzy
 * @Date: Created in 2022/12/8 14:30
 * ModifiedBy:
 * Version:
 */
@FeignClient(name = "ethink-mdm-service", path = "mdm-service/facade/v1/legalCurrencyExchangeRate", contextId = "legalCurrencyExchangeRateFacade")
public interface LegalCurrencyExchangeRateFacade {
    @PostMapping("/getLegalCurrencyExchangeRateSummary")
    @ResponseBody
    LegalCurrencyExchangeRateGetSummaryResponse getLegalCurrencyExchangeRateSummary();

    @PostMapping("/listLegalCurrencyExchangeRateByPubDates")
    @ResponseBody
    List<LegalCurrencyExchangeRateListByPubDatesResponse> listLegalCurrencyExchangeRateByPubDates(@RequestBody LegalCurrencyExchangeRateListByPubDatesRequest request);
}
